﻿@{
    ViewBag.Title = "Home";
}

@section styles{
    <link rel="stylesheet" href="~/css/load.css" asp-append-version="true" />
    <link rel="stylesheet" href="~/css/admin.css" asp-append-version="true" />
}

<!-- 布局框架 -->
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <ul class="layui-nav layui-layout-left">
            <li class="collaspe layui-nav-item"><a href="#" class="layui-icon layui-icon-shrink-right"></a></li>
            <li class="refresh layui-nav-item"><a href="#" class="layui-icon layui-icon-refresh-1" loading=600></a></li>
        </ul>
        <div id="control" class="layui-layout-control"></div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide-xs"><a href="#" class="fullScreen layui-icon layui-icon-screen-full"></a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="https://gitee.com/pear-admin/pear-admin-abp" class="layui-icon layui-icon-website"></a></li>
            <li class="layui-nav-item layui-hide-xs">
                <a class="notice">
                    <i class="layui-icon layui-icon-notice"></i>
                    <span id="headerNotice"></span>
                </a>
            </li>
            <li class="setting layui-nav-item"><a href="#" class="layui-icon layui-icon-more-vertical"></a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-logo">
            <img class="logo" src="" />
            <span class="title"></span>
        </div>
        <div class="layui-side-scroll">
            <div id="sideMenu">
                <ul lay-filter="sideMenu" class="layui-nav arrow pear-menu layui-nav-tree pear-nav-tree">
                    <li class="layui-nav-item">
                        <a href="javascript:;" menu-type="0" menu-id="1">
                            <i class="layui-icon"></i>
                            <span>一级菜单</span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" menu-type="0" menu-id="2">
                                    <i class="iconfont"></i>
                                    <span>二级菜单</span>
                                </a>
                                <dl class="layui-nav-child">
                                    <dd>
                                        <a menu-url="/Order/Index" class="site-demo-active" menu-type="1" menu-id="3" menu-title="三级菜单">
                                            <i class="layui-icon"></i>
                                            <span>三级菜单</span>
                                        </a>
                                    </dd>
                                </dl>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="layui-body">
        <div id="content"></div>
    </div>
</div>

<!-- 移动端 遮盖层 -->
<div class="pear-cover"></div>

<!-- 初始加载 动画-->
<div class="loader-main">
    <div class="loader"></div>
</div>

<!-- 移动端 的 收缩适配 -->
<div class="collaspe pe-collaspe layui-hide-sm">
    <i class="layui-icon layui-icon-shrink-right"></i>
</div>

@section scripts{
    <script type="text/javascript">
        layui.use(['admin', 'layer', 'hash'], function () {
            var admin = layui.admin;
            var $ = layui.jquery;
            var layer = layui.layer;
            var hash = layui.hash;

            var config = {
                logo: {
                    title: "PearAdmin AbpTemplate", // 网站标题
                    image: "/images/logo.png" // 网站Logo
                },
                menu: {
                    control: false, // 是 否 开 启 多 系 统 菜 单 true 开启 false 关闭
                    accordion: true,
                    async: false,
                    select: 3, // 默 认 选 中 菜 单 项
                },
                tab: {
                    muiltTab: true, // 是 否 开 启 多 标 签 页 true 开启 false 关闭
                    keepState: true,
                    tabMax: 20,
                    index: {
                        id: 3,
                        href: '@Url.Action("Index","Order")', // 默 认 加 载 主 页
                        title: "Index"
                    }
                },
                theme: {
                    defaultMenu: "dark-theme", // 默 认 主 题 样 式 dark-theme 默认主题 light-theme 亮主题
                    allowCustom: false,
                    defaultColor: "3"
                },
                colors: [
                    {
			            id: "1",
			            color: "#FF5722"
		            },
		            {
			            id: "2",
			            color: "#5FB878"
		            },
		            {
			            id: "3",
			            color: "#1E9FFF"
                    },
                    {
			            id: "4",
			            color: "#FFB800"
                    },
                    {
			            id: "5",
			            color: "darkgray"
                    },
                    {
			            id: "6",
			            color: "#f7cfea"
		            }
                ],
                links: [
                    {
			            icon: "layui-icon layui-icon-website",
			            title: "Pear Admin网站",
			            href: "http://www.pearadmin.com"
		            },
		            {
			            icon: "layui-icon layui-icon-read",
			            title: "Abp网站",
			            href: "https://aspnetboilerplate.com/"
		            },
		            {
			            icon: "layui-icon layui-icon-fonts-code",
			            title: "Gitee地址",
			            href: "https://gitee.com/530521314/PearAdmin.AbpTemplate.git"
		            }
                ],
                other: {
                    keepLoad: false, // 主 页 加 载 过 度 时 长 可 为 false
                },
                header: {
                    message: false
                }
            };
            admin.render(config);

            window.selectedWindow = function () {
                alert(9527);
            }
        });
    </script>
}
